package com.niuwa.quartz;

import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.niuwa.quartz.util.SpringUtil;

public class Main {

	private static Logger logger = Logger.getLogger(Main.class);

	public static void main(String[] args) {

		SpringUtil.ctx = new ClassPathXmlApplicationContext(
				"classpath:spring-quartz.xml");
		logger.info("QuartzJob is start.....!");
		while (true) {
			try {
				Thread.sleep(1000 * 60 * 10);
				logger.info("sleep 10s");
			} catch (Exception e) {
			}
		}
	}
}